<div class="container_12">

    <div class="grid_12" >
<?php

$unavariable = $_GET['variable'];
$this->db->select('*');
        $this->db->where('id_producto', $unavariable);
        $query = $this->db->get('productos');

 

$table_setup=array(
    'table_open' => '<table class="zebraTable">',
    'row_start' => '<tr class="rowOdd">',
    'row_alt_start' => '<tr class="rowEven">'
);  

$this->table->set_heading ('id', 'Categoria', 'Nombre', 'Descripcion', 'Cantidad', 'precio', 'id user');

$this->table->set_template($table_setup);
$this->table->set_caption('detalles del producto'); 
echo $this->table->generate($query); 
/*

foreach($data->result() as $prod_row)
{
echo $prod_row->id_producto;    
echo $prod_row->categoria;    
echo $prod_row->nombre;
echo $prod_row->descripcion;
echo $prod_row->cantidad;
echo $prod_row->precio;
echo $prod_row->id_user;


}



$tmpl = array ( 'table_open' => '<table border="8" cellpadding="2"cellspacing="1" class="mytable">' );

$this->table->set_caption("Lista de productos");
$this->table->set_template($tmpl);
$this->table->set_heading(array(
    'id_pruducto',    
    'categoria',
    'nombre',
    'descripcion',
    'cantidad',
    'precio',
    'id_user'
));
foreach ($consulta->result_array() as $prod_row) {
    $this->table->add_row(array(
       
        $prod_row['id_producto'],
        $prod_row['categoria'],
        $prod_row['nombre'],
        $prod_row['descripcion'],
        $prod_row['cantidad'],
        $prod_row['precio'],
        $prod_row['id_user']
        ));
}


echo $this->table->generate();

  */?></div></div>


